<?php namespace Waimai\Controller;
class UploadController extends  Controller{
	//单图上传
	public function singleImageUpload()
	{
		$file = Upload::make();
		if($file)
		{
			View::ajax(array('error' => 0, 'url' => $file[0]['url']));
		}else{
			View::ajax(array('error' => 1, 'message' =>'上传失败'));
		}
	}
}
